home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 1 / MacMania 1.toast / Educational / Misc. / Class Administrator / SetUpStack / background_8177.txt < prev    next >
Text File  |  1990-07-06  |  27KB  |  1,207 lines

  1. -- background: 8177 from stack: in
  2. -- bmap block id: 8218
  3. -- flags: 0000
  4. -- background id: 0
  5. -- name: 
  6.  
  7.  
  8. -- part 2 (field)
  9. -- low flags: 00
  10. -- high flags: 0004
  11. -- rect: left=29 top=84 right=121 bottom=104
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 0
  15. -- font id: 3
  16. -- text size: 9
  17. -- style flags: 0
  18. -- line height: 12
  19. -- part name: 
  20. ----- HyperTalk script -----
  21. on MouseUp
  22.   get the target
  23.   put word 4 of it into num
  24.   global code,cardname,start,finish
  25.   put field "start date" into start
  26.   put field "end date" into finish
  27.   put char 1 of line 1 of bkgnd field id num into temp
  28.   put temp & line 2 of bkgnd field id num & "Attendance" into cardname
  29.   if hilite of bkgnd button "Tardy" is true then put "T" into code
  30.   if hilite of bkgnd button "Absent"is true then put "A" into code
  31.   if hilite of bkgnd button "Excused" is true then put "I" into code
  32.   if hilite of bkgnd button "Unexcused" is true then put "U" into code
  33.   if hilite of bkgnd button "Suspended" is true then put "S" into code
  34.   if hilite of bkgnd button "Student Activity" is true then put "V" into code
  35.   put hilite of bkgnd button "Edit" into choice
  36.   if choice is true then DoEdit
  37.   else
  38.     DoType
  39.   end if
  40.   domenu "Back"
  41. end MouseUp
  42.  
  43.  
  44.  
  45. On DoType
  46.   global code,cardname
  47.   go to card cardname
  48.   put word 2 of item 2 of the long date into Day
  49.   put "A" & Day into fieldname
  50.   if word 2 of the long date is "September" then
  51.     put code into line 1 of card field fieldname
  52.   end if
  53.   if word 2 of the long date is "October" then
  54.     put code into line 2 of card field fieldname
  55.   end if
  56.   if word 2 of the long date is "November" then
  57.     put code into line 3 of card field fieldname
  58.   end if
  59.   if word 2 of the long date is "December" then
  60.     put code into line 4 of card field fieldname
  61.   end if
  62.   if word 2 of the long date is "January" then
  63.     put code into line 5 of card field fieldname
  64.   end if
  65.   if word 2 of the long date is "February" then
  66.     put code into line 6 of card field fieldname
  67.   end if
  68.   if word 2 of the long date is "March" then
  69.     put code into line 7 of card field fieldname
  70.   end if
  71.   if word 2 of the long date is "April" then
  72.     put code into line 8 of card field fieldname
  73.   end if
  74.   if word 2 of the long date is "May" then
  75.     put code into line 9 of card field fieldname
  76.   end if
  77.   if word 2 of the long date is "June" then
  78.     put code into line 10 of card field fieldname
  79.   end if
  80.  
  81. end DoType
  82.  
  83. On DoEdit
  84.   global code,cardname,start,finish, fieldname
  85.   go to card cardname
  86.   put word 2 of start into startDay
  87.   put word 2 of finish into endDay
  88.   if endDay is empty and startDay is not empty then
  89.     put "A" & word 2 of start into fieldname
  90.     DoCalcDate
  91.     exit DoEdit
  92.   end if
  93.   if startDay is empty and endDay is empty then
  94.     ask "Which day?"
  95.     put it into start
  96.     put "A" & word 2 of start into fieldname
  97.     DoCalcDate
  98.     exit DoEdit
  99.   end if
  100.   repeat with Day = startDay to endDay
  101.     put "A" & Day into fieldname
  102.     DoCalcDate
  103.   end repeat
  104. end DoEdit
  105.  
  106.  
  107. On DoCalcDate
  108.   global code,fieldname, start
  109.   if word 1 of start is "Sep" then
  110.     put code into line 1 of card field fieldname
  111.     put code into msg
  112.   end if
  113.   if word 1 of start is "Oct" then
  114.     put code into line 2 of card field fieldname
  115.   end if
  116.   if word 1 of start is "Nov" then
  117.     put code into line 3 of card field fieldname
  118.   end if
  119.   if word 1 of start is "Dec" then
  120.     put code into line 4 of card field fieldname
  121.   end if
  122.   if word 1 of start is "Jan" then
  123.     put code into line 5 of card field fieldname
  124.   end if
  125.   if word 1 of start is "Feb" then
  126.     put code into line 6 of card field fieldname
  127.   end if
  128.   if word 1 of start is "Mar" then
  129.     put code into line 7 of card field fieldname
  130.   end if
  131.   if word 1 of start is "Apr" then
  132.     put code into line 8 of card field fieldname
  133.   end if
  134.   if word 1 of start is "May" then
  135.     put code into line 9 of card field fieldname
  136.   end if
  137.   if word 1 of start is "Jun" then
  138.     put code into line 10 of card field fieldname
  139.   end if
  140. End DoCalcDate
  141.  
  142.  
  143.  
  144.  
  145. -- part 3 (field)
  146. -- low flags: 00
  147. -- high flags: 0004
  148. -- rect: left=29 top=124 right=161 bottom=104
  149. -- title width / last selected line: 0
  150. -- icon id / first selected line: 0 / 0
  151. -- text alignment: 0
  152. -- font id: 3
  153. -- text size: 9
  154. -- style flags: 0
  155. -- line height: 12
  156. -- part name: 
  157.  
  158.  
  159. -- part 4 (field)
  160. -- low flags: 00
  161. -- high flags: 0004
  162. -- rect: left=30 top=164 right=201 bottom=104
  163. -- title width / last selected line: 0
  164. -- icon id / first selected line: 0 / 0
  165. -- text alignment: 0
  166. -- font id: 3
  167. -- text size: 9
  168. -- style flags: 0
  169. -- line height: 12
  170. -- part name: 
  171.  
  172.  
  173. -- part 5 (field)
  174. -- low flags: 00
  175. -- high flags: 0004
  176. -- rect: left=30 top=205 right=242 bottom=105
  177. -- title width / last selected line: 0
  178. -- icon id / first selected line: 0 / 0
  179. -- text alignment: 0
  180. -- font id: 3
  181. -- text size: 9
  182. -- style flags: 0
  183. -- line height: 12
  184. -- part name: 
  185.  
  186.  
  187. -- part 6 (field)
  188. -- low flags: 00
  189. -- high flags: 0004
  190. -- rect: left=29 top=244 right=281 bottom=106
  191. -- title width / last selected line: 0
  192. -- icon id / first selected line: 0 / 0
  193. -- text alignment: 0
  194. -- font id: 3
  195. -- text size: 9
  196. -- style flags: 0
  197. -- line height: 12
  198. -- part name: 
  199.  
  200.  
  201. -- part 7 (field)
  202. -- low flags: 00
  203. -- high flags: 0004
  204. -- rect: left=29 top=283 right=320 bottom=106
  205. -- title width / last selected line: 0
  206. -- icon id / first selected line: 0 / 0
  207. -- text alignment: 0
  208. -- font id: 3
  209. -- text size: 9
  210. -- style flags: 0
  211. -- line height: 12
  212. -- part name: 
  213.  
  214.  
  215. -- part 8 (field)
  216. -- low flags: 00
  217. -- high flags: 0004
  218. -- rect: left=108 top=85 right=122 bottom=175
  219. -- title width / last selected line: 0
  220. -- icon id / first selected line: 0 / 0
  221. -- text alignment: 0
  222. -- font id: 3
  223. -- text size: 9
  224. -- style flags: 0
  225. -- line height: 12
  226. -- part name: 
  227.  
  228.  
  229. -- part 9 (field)
  230. -- low flags: 00
  231. -- high flags: 0004
  232. -- rect: left=108 top=124 right=161 bottom=176
  233. -- title width / last selected line: 0
  234. -- icon id / first selected line: 0 / 0
  235. -- text alignment: 0
  236. -- font id: 3
  237. -- text size: 9
  238. -- style flags: 0
  239. -- line height: 12
  240. -- part name: 
  241.  
  242.  
  243. -- part 10 (field)
  244. -- low flags: 00
  245. -- high flags: 0004
  246. -- rect: left=109 top=164 right=201 bottom=178
  247. -- title width / last selected line: 0
  248. -- icon id / first selected line: 0 / 0
  249. -- text alignment: 0
  250. -- font id: 3
  251. -- text size: 9
  252. -- style flags: 0
  253. -- line height: 12
  254. -- part name: 
  255.  
  256.  
  257. -- part 11 (field)
  258. -- low flags: 00
  259. -- high flags: 0004
  260. -- rect: left=109 top=206 right=243 bottom=179
  261. -- title width / last selected line: 0
  262. -- icon id / first selected line: 0 / 0
  263. -- text alignment: 0
  264. -- font id: 3
  265. -- text size: 9
  266. -- style flags: 0
  267. -- line height: 12
  268. -- part name: 
  269.  
  270.  
  271. -- part 12 (field)
  272. -- low flags: 00
  273. -- high flags: 0004
  274. -- rect: left=109 top=245 right=282 bottom=180
  275. -- title width / last selected line: 0
  276. -- icon id / first selected line: 0 / 0
  277. -- text alignment: 0
  278. -- font id: 3
  279. -- text size: 9
  280. -- style flags: 0
  281. -- line height: 12
  282. -- part name: 
  283.  
  284.  
  285. -- part 13 (field)
  286. -- low flags: 00
  287. -- high flags: 0004
  288. -- rect: left=109 top=283 right=320 bottom=182
  289. -- title width / last selected line: 0
  290. -- icon id / first selected line: 0 / 0
  291. -- text alignment: 0
  292. -- font id: 3
  293. -- text size: 9
  294. -- style flags: 0
  295. -- line height: 12
  296. -- part name: 
  297.  
  298.  
  299. -- part 14 (field)
  300. -- low flags: 00
  301. -- high flags: 0004
  302. -- rect: left=181 top=85 right=122 bottom=247
  303. -- title width / last selected line: 0
  304. -- icon id / first selected line: 0 / 0
  305. -- text alignment: 0
  306. -- font id: 3
  307. -- text size: 9
  308. -- style flags: 0
  309. -- line height: 12
  310. -- part name: 
  311.  
  312.  
  313. -- part 15 (field)
  314. -- low flags: 00
  315. -- high flags: 0004
  316. -- rect: left=181 top=125 right=162 bottom=248
  317. -- title width / last selected line: 0
  318. -- icon id / first selected line: 0 / 0
  319. -- text alignment: 0
  320. -- font id: 3
  321. -- text size: 9
  322. -- style flags: 0
  323. -- line height: 12
  324. -- part name: 
  325.  
  326.  
  327. -- part 16 (field)
  328. -- low flags: 00
  329. -- high flags: 0004
  330. -- rect: left=182 top=165 right=202 bottom=249
  331. -- title width / last selected line: 0
  332. -- icon id / first selected line: 0 / 0
  333. -- text alignment: 0
  334. -- font id: 3
  335. -- text size: 9
  336. -- style flags: 0
  337. -- line height: 12
  338. -- part name: 
  339.  
  340.  
  341. -- part 17 (field)
  342. -- low flags: 00
  343. -- high flags: 0004
  344. -- rect: left=182 top=206 right=243 bottom=250
  345. -- title width / last selected line: 0
  346. -- icon id / first selected line: 0 / 0
  347. -- text alignment: 0
  348. -- font id: 3
  349. -- text size: 9
  350. -- style flags: 0
  351. -- line height: 12
  352. -- part name: 
  353.  
  354.  
  355. -- part 18 (field)
  356. -- low flags: 00
  357. -- high flags: 0004
  358. -- rect: left=182 top=246 right=283 bottom=250
  359. -- title width / last selected line: 0
  360. -- icon id / first selected line: 0 / 0
  361. -- text alignment: 0
  362. -- font id: 3
  363. -- text size: 9
  364. -- style flags: 0
  365. -- line height: 12
  366. -- part name: 
  367.  
  368.  
  369. -- part 19 (field)
  370. -- low flags: 00
  371. -- high flags: 0004
  372. -- rect: left=183 top=284 right=321 bottom=252
  373. -- title width / last selected line: 0
  374. -- icon id / first selected line: 0 / 0
  375. -- text alignment: 0
  376. -- font id: 3
  377. -- text size: 9
  378. -- style flags: 0
  379. -- line height: 12
  380. -- part name: 
  381.  
  382.  
  383. -- part 20 (field)
  384. -- low flags: 00
  385. -- high flags: 0004
  386. -- rect: left=251 top=85 right=122 bottom=322
  387. -- title width / last selected line: 0
  388. -- icon id / first selected line: 0 / 0
  389. -- text alignment: 0
  390. -- font id: 3
  391. -- text size: 9
  392. -- style flags: 0
  393. -- line height: 12
  394. -- part name: 
  395.  
  396.  
  397. -- part 21 (field)
  398. -- low flags: 00
  399. -- high flags: 0004
  400. -- rect: left=251 top=126 right=163 bottom=322
  401. -- title width / last selected line: 0
  402. -- icon id / first selected line: 0 / 0
  403. -- text alignment: 0
  404. -- font id: 3
  405. -- text size: 9
  406. -- style flags: 0
  407. -- line height: 12
  408. -- part name: 
  409.  
  410.  
  411. -- part 22 (field)
  412. -- low flags: 00
  413. -- high flags: 0004
  414. -- rect: left=252 top=166 right=203 bottom=323
  415. -- title width / last selected line: 0
  416. -- icon id / first selected line: 0 / 0
  417. -- text alignment: 0
  418. -- font id: 3
  419. -- text size: 9
  420. -- style flags: 0
  421. -- line height: 12
  422. -- part name: 
  423.  
  424.  
  425. -- part 24 (field)
  426. -- low flags: 00
  427. -- high flags: 0004
  428. -- rect: left=252 top=206 right=243 bottom=323
  429. -- title width / last selected line: 0
  430. -- icon id / first selected line: 0 / 0
  431. -- text alignment: 0
  432. -- font id: 3
  433. -- text size: 9
  434. -- style flags: 0
  435. -- line height: 12
  436. -- part name: 
  437.  
  438.  
  439. -- part 25 (field)
  440. -- low flags: 00
  441. -- high flags: 0004
  442. -- rect: left=253 top=246 right=283 bottom=324
  443. -- title width / last selected line: 0
  444. -- icon id / first selected line: 0 / 0
  445. -- text alignment: 0
  446. -- font id: 3
  447. -- text size: 9
  448. -- style flags: 0
  449. -- line height: 12
  450. -- part name: 
  451.  
  452.  
  453. -- part 26 (field)
  454. -- low flags: 00
  455. -- high flags: 0004
  456. -- rect: left=253 top=284 right=321 bottom=324
  457. -- title width / last selected line: 0
  458. -- icon id / first selected line: 0 / 0
  459. -- text alignment: 0
  460. -- font id: 3
  461. -- text size: 9
  462. -- style flags: 0
  463. -- line height: 12
  464. -- part name: 
  465.  
  466.  
  467. -- part 27 (field)
  468. -- low flags: 00
  469. -- high flags: 0004
  470. -- rect: left=325 top=86 right=123 bottom=399
  471. -- title width / last selected line: 0
  472. -- icon id / first selected line: 0 / 0
  473. -- text alignment: 0
  474. -- font id: 3
  475. -- text size: 9
  476. -- style flags: 0
  477. -- line height: 12
  478. -- part name: 
  479.  
  480.  
  481. -- part 28 (field)
  482. -- low flags: 00
  483. -- high flags: 0004
  484. -- rect: left=325 top=125 right=162 bottom=399
  485. -- title width / last selected line: 0
  486. -- icon id / first selected line: 0 / 0
  487. -- text alignment: 0
  488. -- font id: 3
  489. -- text size: 9
  490. -- style flags: 0
  491. -- line height: 12
  492. -- part name: 
  493.  
  494.  
  495. -- part 29 (field)
  496. -- low flags: 00
  497. -- high flags: 0004
  498. -- rect: left=325 top=165 right=202 bottom=400
  499. -- title width / last selected line: 0
  500. -- icon id / first selected line: 0 / 0
  501. -- text alignment: 0
  502. -- font id: 3
  503. -- text size: 9
  504. -- style flags: 0
  505. -- line height: 12
  506. -- part name: 
  507.  
  508.  
  509. -- part 30 (field)
  510. -- low flags: 00
  511. -- high flags: 0004
  512. -- rect: left=325 top=206 right=243 bottom=401
  513. -- title width / last selected line: 0
  514. -- icon id / first selected line: 0 / 0
  515. -- text alignment: 0
  516. -- font id: 3
  517. -- text size: 9
  518. -- style flags: 0
  519. -- line height: 12
  520. -- part name: 
  521.  
  522.  
  523. -- part 31 (field)
  524. -- low flags: 00
  525. -- high flags: 0004
  526. -- rect: left=325 top=247 right=284 bottom=402
  527. -- title width / last selected line: 0
  528. -- icon id / first selected line: 0 / 0
  529. -- text alignment: 0
  530. -- font id: 3
  531. -- text size: 9
  532. -- style flags: 0
  533. -- line height: 12
  534. -- part name: 
  535.  
  536.  
  537. -- part 32 (field)
  538. -- low flags: 00
  539. -- high flags: 0004
  540. -- rect: left=326 top=285 right=322 bottom=403
  541. -- title width / last selected line: 0
  542. -- icon id / first selected line: 0 / 0
  543. -- text alignment: 0
  544. -- font id: 3
  545. -- text size: 9
  546. -- style flags: 0
  547. -- line height: 12
  548. -- part name: 
  549.  
  550.  
  551. -- part 34 (field)
  552. -- low flags: 00
  553. -- high flags: 0004
  554. -- rect: left=406 top=85 right=122 bottom=487
  555. -- title width / last selected line: 0
  556. -- icon id / first selected line: 0 / 0
  557. -- text alignment: 0
  558. -- font id: 3
  559. -- text size: 9
  560. -- style flags: 0
  561. -- line height: 12
  562. -- part name: 
  563.  
  564.  
  565. -- part 35 (field)
  566. -- low flags: 00
  567. -- high flags: 0004
  568. -- rect: left=407 top=125 right=162 bottom=487
  569. -- title width / last selected line: 0
  570. -- icon id / first selected line: 0 / 0
  571. -- text alignment: 0
  572. -- font id: 3
  573. -- text size: 9
  574. -- style flags: 0
  575. -- line height: 12
  576. -- part name: 
  577.  
  578.  
  579. -- part 36 (field)
  580. -- low flags: 00
  581. -- high flags: 0004
  582. -- rect: left=408 top=166 right=203 bottom=486
  583. -- title width / last selected line: 0
  584. -- icon id / first selected line: 0 / 0
  585. -- text alignment: 0
  586. -- font id: 3
  587. -- text size: 9
  588. -- style flags: 0
  589. -- line height: 12
  590. -- part name: 
  591.  
  592.  
  593. -- part 37 (field)
  594. -- low flags: 00
  595. -- high flags: 0004
  596. -- rect: left=408 top=205 right=242 bottom=487
  597. -- title width / last selected line: 0
  598. -- icon id / first selected line: 0 / 0
  599. -- text alignment: 0
  600. -- font id: 3
  601. -- text size: 9
  602. -- style flags: 0
  603. -- line height: 12
  604. -- part name: 
  605.  
  606.  
  607. -- part 38 (field)
  608. -- low flags: 00
  609. -- high flags: 0004
  610. -- rect: left=409 top=244 right=281 bottom=487
  611. -- title width / last selected line: 0
  612. -- icon id / first selected line: 0 / 0
  613. -- text alignment: 0
  614. -- font id: 3
  615. -- text size: 9
  616. -- style flags: 0
  617. -- line height: 12
  618. -- part name: 
  619.  
  620.  
  621. -- part 33 (field)
  622. -- low flags: 00
  623. -- high flags: 0004
  624. -- rect: left=409 top=282 right=319 bottom=487
  625. -- title width / last selected line: 0
  626. -- icon id / first selected line: 0 / 0
  627. -- text alignment: 0
  628. -- font id: 3
  629. -- text size: 9
  630. -- style flags: 0
  631. -- line height: 12
  632. -- part name: 
  633.  
  634.  
  635. -- part 40 (field)
  636. -- low flags: 01
  637. -- high flags: 0000
  638. -- rect: left=117 top=43 right=60 bottom=304
  639. -- title width / last selected line: 0
  640. -- icon id / first selected line: 0 / 0
  641. -- text alignment: 0
  642. -- font id: 21
  643. -- text size: 12
  644. -- style flags: 0
  645. -- line height: 14
  646. -- part name: Date
  647. ----- HyperTalk script -----
  648. On MouseUp
  649.   put the long date into field "Date"
  650. end MouseUp
  651.  
  652.  
  653.  
  654. -- part 42 (button)
  655. -- low flags: 00
  656. -- high flags: 0000
  657. -- rect: left=254 top=0 right=23 bottom=281
  658. -- title width / last selected line: 0
  659. -- icon id / first selected line: 27009 / 27009
  660. -- text alignment: 1
  661. -- font id: 0
  662. -- text size: 12
  663. -- style flags: 0
  664. -- line height: 16
  665. -- part name: 
  666. ----- HyperTalk script -----
  667. on mouseUp
  668.   go to next card
  669. end mouseUp
  670.  
  671.  
  672.  
  673. -- part 43 (button)
  674. -- low flags: 00
  675. -- high flags: 0000
  676. -- rect: left=209 top=0 right=22 bottom=236
  677. -- title width / last selected line: 0
  678. -- icon id / first selected line: 9301 / 9301
  679. -- text alignment: 1
  680. -- font id: 0
  681. -- text size: 12
  682. -- style flags: 0
  683. -- line height: 16
  684. -- part name: 
  685. ----- HyperTalk script -----
  686. on mouseUp
  687.   go to previous card
  688. end mouseUp
  689.  
  690.  
  691.  
  692. -- part 45 (field)
  693. -- low flags: 00
  694. -- high flags: 0002
  695. -- rect: left=136 top=64 right=78 bottom=204
  696. -- title width / last selected line: 0
  697. -- icon id / first selected line: 0 / 0
  698. -- text alignment: 0
  699. -- font id: 3
  700. -- text size: 9
  701. -- style flags: 0
  702. -- line height: 12
  703. -- part name: start date
  704.  
  705.  
  706. -- part 46 (field)
  707. -- low flags: 00
  708. -- high flags: 0002
  709. -- rect: left=221 top=64 right=79 bottom=302
  710. -- title width / last selected line: 0
  711. -- icon id / first selected line: 0 / 0
  712. -- text alignment: 0
  713. -- font id: 3
  714. -- text size: 9
  715. -- style flags: 0
  716. -- line height: 12
  717. -- part name: end date
  718.  
  719.  
  720. -- part 47 (field)
  721. -- low flags: 00
  722. -- high flags: 0002
  723. -- rect: left=374 top=43 right=60 bottom=449
  724. -- title width / last selected line: 0
  725. -- icon id / first selected line: 0 / 0
  726. -- text alignment: 0
  727. -- font id: 3
  728. -- text size: 9
  729. -- style flags: 0
  730. -- line height: 12
  731. -- part name: Period
  732.  
  733.  
  734. -- part 48 (field)
  735. -- low flags: 00
  736. -- high flags: 4002
  737. -- rect: left=374 top=62 right=80 bottom=449
  738. -- title width / last selected line: 0
  739. -- icon id / first selected line: 0 / 0
  740. -- text alignment: 0
  741. -- font id: 3
  742. -- text size: 9
  743. -- style flags: 0
  744. -- line height: 12
  745. -- part name: Class
  746.  
  747.  
  748. -- part 49 (button)
  749. -- low flags: 00
  750. -- high flags: 2000
  751. -- rect: left=84 top=0 right=19 bottom=109
  752. -- title width / last selected line: 0
  753. -- icon id / first selected line: 15972 / 15972
  754. -- text alignment: 1
  755. -- font id: 0
  756. -- text size: 12
  757. -- style flags: 0
  758. -- line height: 16
  759. -- part name: Attendance
  760. ----- HyperTalk script -----
  761. On MouseUp
  762.   ask "Which student?"
  763.   put char 1 of word 1 of it & word 2 of it into studentname
  764.   put studentname & "Attendance" into studentname
  765.   go to card studentname
  766. end MouseUp
  767.  
  768.  
  769. -- part 50 (button)
  770. -- low flags: 00
  771. -- high flags: 8006
  772. -- rect: left=2 top=323 right=339 bottom=78
  773. -- title width / last selected line: 0
  774. -- icon id / first selected line: 0 / 0
  775. -- text alignment: 1
  776. -- font id: 0
  777. -- text size: 12
  778. -- style flags: 0
  779. -- line height: 16
  780. -- part name: Excused
  781. ----- HyperTalk script -----
  782. on mouseUp
  783.   put number of bkgnd buttons - 1 into numbutts
  784.   repeat with x = 1 to numbutts
  785.     set hilite of bkgnd button x to false
  786.   end repeat
  787.   set hilite of bkgnd button "Excused" to true
  788.   set hilite of bkgnd button "Edit" to true
  789. end MouseUp
  790.  
  791.  
  792.  
  793.  
  794. -- part 51 (button)
  795. -- low flags: 00
  796. -- high flags: 8006
  797. -- rect: left=179 top=323 right=339 bottom=270
  798. -- title width / last selected line: 0
  799. -- icon id / first selected line: 0 / 0
  800. -- text alignment: 1
  801. -- font id: 0
  802. -- text size: 12
  803. -- style flags: 0
  804. -- line height: 16
  805. -- part name: Suspended
  806. ----- HyperTalk script -----
  807. on mouseUp
  808.   put number of bkgnd buttons - 1 into numbutts
  809.   repeat with x = 1 to numbutts
  810.     set hilite of bkgnd button x to false
  811.   end repeat
  812.   set hilite of bkgnd button "Suspended" to true
  813.   set hilite of bkgnd button "Edit" to true
  814. end MouseUp
  815.  
  816.  
  817.  
  818.  
  819. -- part 52 (button)
  820. -- low flags: 00
  821. -- high flags: 8006
  822. -- rect: left=185 top=290 right=313 bottom=245
  823. -- title width / last selected line: 0
  824. -- icon id / first selected line: 0 / 0
  825. -- text alignment: 1
  826. -- font id: 0
  827. -- text size: 12
  828. -- style flags: 0
  829. -- line height: 16
  830. -- part name: Edit
  831. ----- HyperTalk script -----
  832. on mouseUp
  833.   set hilite of bkgnd button "Tardy" to false
  834.   set hilite of bkgnd button "Absent" to false
  835.   set hilite of bkgnd button "Edit" to true
  836. end mouseUp
  837.  
  838.  
  839.  
  840. -- part 54 (button)
  841. -- low flags: 00
  842. -- high flags: 8006
  843. -- rect: left=111 top=289 right=312 bottom=178
  844. -- title width / last selected line: 0
  845. -- icon id / first selected line: 0 / 0
  846. -- text alignment: 1
  847. -- font id: 0
  848. -- text size: 12
  849. -- style flags: 0
  850. -- line height: 16
  851. -- part name: Absent
  852. ----- HyperTalk script -----
  853. on mouseUp
  854.   put number of bkgnd buttons into numbutts
  855.   repeat with x = 1 to numbutts
  856.     set hilite of bkgnd button x to false
  857.   end repeat
  858.   get hilite of bkgnd button "Absent"
  859.   set hilite of bkgnd button "Absent" to true
  860. end mouseUp
  861.  
  862.  
  863.  
  864. -- part 55 (button)
  865. -- low flags: 00
  866. -- high flags: C006
  867. -- rect: left=33 top=289 right=309 bottom=98
  868. -- title width / last selected line: 0
  869. -- icon id / first selected line: 0 / 0
  870. -- text alignment: 1
  871. -- font id: 0
  872. -- text size: 12
  873. -- style flags: 0
  874. -- line height: 16
  875. -- part name: Tardy
  876. ----- HyperTalk script -----
  877. on mouseUp
  878.   put number of bkgnd buttons into numbutts
  879.   repeat with x = 1 to numbutts
  880.     set hilite of bkgnd button x to false
  881.   end repeat
  882.   set hilite of bkgnd button "Tardy" to true
  883. end mouseUp
  884.  
  885.  
  886.  
  887.  
  888. -- part 56 (button)
  889. -- low flags: 00
  890. -- high flags: 8006
  891. -- rect: left=82 top=323 right=339 bottom=175
  892. -- title width / last selected line: 0
  893. -- icon id / first selected line: 0 / 0
  894. -- text alignment: 1
  895. -- font id: 0
  896. -- text size: 12
  897. -- style flags: 0
  898. -- line height: 16
  899. -- part name: Unexcused
  900. ----- HyperTalk script -----
  901. on mouseUp
  902.   put number of bkgnd buttons - 1 into numbutts
  903.   repeat with x = 1 to numbutts
  904.     set hilite of bkgnd button x to false
  905.   end repeat
  906.   set hilite of bkgnd button "Unexcused" to true
  907.   set hilite of bkgnd button "Edit" to true
  908. end mouseUp
  909.  
  910.  
  911.  
  912. -- part 57 (button)
  913. -- low flags: 00
  914. -- high flags: 8006
  915. -- rect: left=274 top=323 right=339 bottom=403
  916. -- title width / last selected line: 0
  917. -- icon id / first selected line: 0 / 0
  918. -- text alignment: 1
  919. -- font id: 0
  920. -- text size: 12
  921. -- style flags: 0
  922. -- line height: 16
  923. -- part name: Student Activity
  924. ----- HyperTalk script -----
  925. on mouseUp
  926.   put number of bkgnd buttons - 1 into numbutts
  927.   repeat with x = 1 to numbutts
  928.     set hilite of bkgnd button x to false
  929.   end repeat
  930.   set hilite of bkgnd button "Student Activity" to true
  931.   set hilite of bkgnd button "Edit" to true
  932. end MouseUp
  933.  
  934.  
  935.  
  936.  
  937. -- part 58 (field)
  938. -- low flags: 81
  939. -- high flags: 0004
  940. -- rect: left=255 top=179 right=314 bottom=481
  941. -- title width / last selected line: 0
  942. -- icon id / first selected line: 0 / 0
  943. -- text alignment: 0
  944. -- font id: 3
  945. -- text size: 12
  946. -- style flags: 0
  947. -- line height: 16
  948. -- part name: Explanation
  949. ----- HyperTalk script -----
  950. On MouseUp
  951.   Hide field "Explanation"
  952. end MouseUp
  953.  
  954.  
  955.  
  956. -- part 60 (button)
  957. -- low flags: 80
  958. -- high flags: 8003
  959. -- rect: left=433 top=291 right=310 bottom=477
  960. -- title width / last selected line: 0
  961. -- icon id / first selected line: 0 / 0
  962. -- text alignment: 1
  963. -- font id: 0
  964. -- text size: 12
  965. -- style flags: 0
  966. -- line height: 16
  967. -- part name: Done
  968. ----- HyperTalk script -----
  969. on mouseUp
  970.   global period
  971.   global class
  972.   Hide field "Explanation"
  973.   Hide bkgnd button "Done"
  974.   repeat with x = 1 to 36
  975.     put field x into field x of card "SeatingChart"
  976.   end repeat
  977. end mouseUp
  978.  
  979.  
  980.  
  981.  
  982. -- part 61 (button)
  983. -- low flags: 00
  984. -- high flags: 8004
  985. -- rect: left=108 top=0 right=22 bottom=208
  986. -- title width / last selected line: 0
  987. -- icon id / first selected line: 0 / 0
  988. -- text alignment: 1
  989. -- font id: 0
  990. -- text size: 12
  991. -- style flags: 0
  992. -- line height: 16
  993. -- part name: Add a student
  994. ----- HyperTalk script -----
  995. on mouseUp
  996.   global className,Period
  997.   Ask "What is the student's name?" with "OK" or "Cancel"
  998.   if it is "Cancel" then exit MouseUp
  999.   put it into StudentName
  1000.   put char 1 of word 1 of it & word 2 of it into temp
  1001.   set lockscreen to true
  1002.   push this card
  1003.   go to setupstack
  1004.   go to card "GradesTemplate"
  1005.   doMenu "Copy Card"
  1006.   pop card
  1007.   doMenu "Paste Card"
  1008.   put className into card field "Class"
  1009.   put period into card field "Period"
  1010.   put StudentName into field "Name"
  1011.   set name of this card to temp & "Grades"
  1012.  
  1013.   push this card
  1014.   go to card "AttendanceTemplate" of setupstack
  1015.   doMenu "Copy Card"
  1016.   pop card
  1017.   doMenu "Paste Card"
  1018.   put className into card field "Class"
  1019.   put period into card field "Period"
  1020.   put StudentName into card field "Name"
  1021.   set name of this card to temp & "Attendance"
  1022.  
  1023.   push this card
  1024.   go to card "ProfileTemplate" of setupstack
  1025.   doMenu "Copy Card"
  1026.   pop card
  1027.   doMenu "Paste Card"
  1028.   put StudentName into field "Name"
  1029.   set name of this card to temp & "Profile"
  1030.   go to card "seatingchart"
  1031.   set lockscreen to false
  1032.   answer "Please enter name into seating chart"
  1033. end mouseUp
  1034.  
  1035.  
  1036.  
  1037. -- part 62 (button)
  1038. -- low flags: 00
  1039. -- high flags: 8004
  1040. -- rect: left=282 top=0 right=23 bottom=398
  1041. -- title width / last selected line: 0
  1042. -- icon id / first selected line: 0 / 0
  1043. -- text alignment: 1
  1044. -- font id: 0
  1045. -- text size: 12
  1046. -- style flags: 0
  1047. -- line height: 16
  1048. -- part name: Delete a student
  1049. ----- HyperTalk script -----
  1050. on mouseUp
  1051.   push this card
  1052.   ask "Which student's records do you wish to delete?"
  1053.   if it is "Cancel" then exit mouseUp
  1054.   put char 1 of word 1 of it & word 2 of it into temp
  1055.   put temp & "Profile" into profilecard
  1056.   set lockscreen to true
  1057.   go to card profilecard
  1058.   doMenu "Delete Card"
  1059.   put temp & "Attendance" into attendancecard
  1060.   go to card attendancecard
  1061.   doMenu "Delete Card"
  1062.   put temp & "Grades" into gradescard
  1063.   go to card gradescard
  1064.   doMenu "Delete Card"
  1065.   pop card
  1066.   set lockscreen to false
  1067. end mouseUp
  1068.  
  1069.  
  1070.  
  1071. -- part 63 (button)
  1072. -- low flags: 00
  1073. -- high flags: A006
  1074. -- rect: left=222 top=23 right=39 bottom=323
  1075. -- title width / last selected line: 0
  1076. -- icon id / first selected line: 0 / 0
  1077. -- text alignment: 1
  1078. -- font id: 0
  1079. -- text size: 12
  1080. -- style flags: 0
  1081. -- line height: 16
  1082. -- part name: Edit seating chart
  1083. ----- HyperTalk script -----
  1084. on mouseUp
  1085.   if hilite of bkgnd button "Edit seating chart" is true then
  1086.     repeat with x = 1 to 36
  1087.       set locktext of field x to false
  1088.     end repeat
  1089.   else
  1090.     repeat with x = 1 to 36
  1091.       set locktext of field x to true
  1092.     end repeat
  1093.   end if
  1094. end mouseUp
  1095.  
  1096.  
  1097.  
  1098.  
  1099. -- part 64 (button)
  1100. -- low flags: 00
  1101. -- high flags: 8004
  1102. -- rect: left=399 top=0 right=23 bottom=512
  1103. -- title width / last selected line: 0
  1104. -- icon id / first selected line: 0 / 0
  1105. -- text alignment: 1
  1106. -- font id: 0
  1107. -- text size: 12
  1108. -- style flags: 0
  1109. -- line height: 16
  1110. -- part name: Add Assignment
  1111. ----- HyperTalk script -----
  1112. on mouseUp
  1113.   global assignment,assignpoints
  1114.   push this card
  1115.   ask "What is the name of the assignment?"
  1116.   put it into assignment
  1117.   ask "How many points is it worth?"
  1118.   put it into assignpoints
  1119.   set lockscreen to true
  1120.   go to card 1
  1121.   repeat with x = 1 to the number of cards
  1122.     go to card x
  1123.     get the name of this bkgnd
  1124.     if word 2 of it is quote & "Grades" & quote then
  1125.       doCheck
  1126.     end if
  1127.   end repeat
  1128.   pop card
  1129.   set lockscreen to false
  1130. end mouseUp
  1131.  
  1132. On doCheck
  1133.   global assignment,assignpoints
  1134.   get the number of lines in field "Column One"
  1135.   if it < 18 then
  1136.     put assignment into line it + 1 in field "Column One"
  1137.     put assignpoints into line it + 1 in field "PtsPoss1"
  1138.   else
  1139.     get the number of lines in field "Column 2"
  1140.     put assignment into line it + 1 in field "Column 2"
  1141.     put assignpoints into line it + 1 in field "PtsPoss2"
  1142.   end if
  1143. end doCheck
  1144.  
  1145.  
  1146.  
  1147.  
  1148. -- part 65 (button)
  1149. -- low flags: 00
  1150. -- high flags: 0000
  1151. -- rect: left=0 top=0 right=21 bottom=24
  1152. -- title width / last selected line: 0
  1153. -- icon id / first selected line: 26635 / 26635
  1154. -- text alignment: 1
  1155. -- font id: 0
  1156. -- text size: 12
  1157. -- style flags: 0
  1158. -- line height: 16
  1159. -- part name: 
  1160. ----- HyperTalk script -----
  1161. on mouseUp
  1162.   push this card
  1163.   go to helper
  1164. end mouseUp
  1165.  
  1166.  
  1167.  
  1168. -- part 67 (button)
  1169. -- low flags: 00
  1170. -- high flags: 2000
  1171. -- rect: left=52 top=0 right=25 bottom=82
  1172. -- title width / last selected line: 0
  1173. -- icon id / first selected line: 8538 / 8538
  1174. -- text alignment: 1
  1175. -- font id: 0
  1176. -- text size: 12
  1177. -- style flags: 0
  1178. -- line height: 16
  1179. -- part name: Grades
  1180. ----- HyperTalk script -----
  1181. on mouseUp
  1182.   ask "Which student's grades do you wish to see?"
  1183.   put char 1 of word 1 of it into temp
  1184.   put temp & word 2 of it & "Grades" into cardname
  1185.   go to card cardname
  1186. end mouseUp
  1187.  
  1188.  
  1189.  
  1190. -- part 68 (button)
  1191. -- low flags: 00
  1192. -- high flags: 2000
  1193. -- rect: left=26 top=0 right=24 bottom=51
  1194. -- title width / last selected line: 0
  1195. -- icon id / first selected line: 2162 / 2162
  1196. -- text alignment: 1
  1197. -- font id: 0
  1198. -- text size: 12
  1199. -- style flags: 0
  1200. -- line height: 16
  1201. -- part name: 
  1202. ----- HyperTalk script -----
  1203. on mouseUp
  1204.   go to first card
  1205. end mouseUp
  1206.  
  1207.